package com.mpaster.meego.service;

import com.mpaster.meego.entity.Role;
import com.mpaster.meego.entity.User;

import java.util.List;
import java.util.Set;

public interface UserService {

    User save(User user);

    User findById(Long id);

    List<User> findAll();

    List<User> findByLastName(String lastName);

    void assignRoles(User user, Set<Role> roles);

    void deleteUser(String id);

}
